//standard time by vebryandimaz
jQuery(document).ready(function() {
    var foo = jQuery('#foo');
  
    function updateTime() {
        var now = new Date();
        foo.text(now.toString());        
    }
  
    updateTime();
    setInterval(updateTime, 1000); 
});